package com.example.api.mapper;

import com.example.api.model.entity.InventoryRecord;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface InventoryRecordMapper {
    
    List<InventoryRecord> findAllByType(@Param("type") Integer type);
    
    List<InventoryRecord> findAllByWid(@Param("wid") String wid);
    
    List<InventoryRecord> findAllByCid(@Param("cid") String cid);
    
    void insert(InventoryRecord record);
    
    InventoryRecord save(InventoryRecord record);
}
